package org.uoss.applications.framework.exception;

public interface ExceptionCode {
	/**
	 * Between -10000 and -19999 are general error codes.
	 */
	public final static Integer DEFAULTEXCEPTION = -10000;//Unknown exception.
	
	public final static Integer NOT_IMPLEMENTS = -19999;//Not implement exception.
	/**
	 * Between -20000 and -29999 are the error codes about DAO.
	 */
	public final static Integer DAO_IS_NULL = -20000;//DAO IS NULL.
	
	public final static Integer ENTITY_QUERY_FAILURE = -20010;//Fail to query entity.
	
	public final static Integer ENTITY_SAVE_FAILURE = -20011;//Fail to save entity.
	
	public final static Integer ENTITY_UPDATE_FAILURE = -20012;//Fail to update entity.
	
	public final static Integer ENTITY_REMOVE_FAILURE = -20013;//Fail to delete entity.
}
